import request from "@/utils/request";

export function loginApi(data) {
    return request({
        url: '/user/login',
        method: 'post',
        data: data
    })
}

export function logout() {
    return request({
        url: '/user/logout',
        method: 'post'
    })

}


export function getClass() {
    return request({
        url: '/user/get_class',
        method: 'get'
    })

}

export function register(data) {
    return request({
        url: '/user/register',
        method: 'post',
        data:data
    })

}
